
import { getAction } from '@/api/manage'
import { serviceApi } from '@/api/common.js'
/**
 * 公共API接口
 */
export const api = {
  list: serviceApi.auth + '/check-rules',
  delete: (ids) => serviceApi.auth + `/check-rules/${ids}`,
  add: serviceApi.auth + '/check-rules',
  edit: serviceApi.auth + '/check-rules'
}

export const checkRuleByCode = (ruleCode, value, params) => getAction(serviceApi.auth + `/check-rules/check/${ruleCode}/${value}`, params);
